home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Compilers⁄Interps / Harvest C / Source Code / GenericFile.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-04  |  1.0 KB  |  38 lines  |  [TEXT/ALFA]

  1. /*
  2.  * Harvest C
  3.  * 
  4.  * Copyright 1991 Eric W. Sink   All rights reserved.
  5.  * 
  6.  * This file defines the interface for GenericFile records.
  7.  * 
  8.  */
  9.  
  10. #ifndef GenericFile_INTERFACE
  11. #define GenericFile_INTERFACE
  12.  
  13. typedef struct GenericFile_S    GenericFile_t;
  14. typedef GenericFile_t P__H     *GenericFileVia_t;
  15.  
  16. #include "Common.h"
  17. #include <stdio.h>
  18.  
  19. struct GenericFile_S {
  20.     char                            name[MAXFILENAME];
  21.     short                           volrefnum;
  22.     short                           errval;
  23.     short                           endfound;
  24.     long                            dirID;
  25.     short                           refnum;
  26.     void                           *theWind;    /* TODO Should be WindowPtr */
  27.     FILE                           *nonmac;
  28.     long                            fpos;
  29.     int                             perm;
  30.  
  31.     EString_t                        buffer;
  32.     unsigned long                   buffersize;
  33.     unsigned long                   bufferindex;
  34.     unsigned long                   Fullness;
  35. };
  36.  
  37. #endif
  38.